package submarinebattle;

import javax.swing.*;

/** 炸弹 */
public class Bomb extends SeaObject {

    public Bomb(int x,int y){
        super(9,12,x,y,3);
    }

    public void move(){
        setY(getY()+getSpeed());//y+(向下)
    }


    public ImageIcon getImage(){
        return Images.bomb;
    }

    public boolean isOutOfBounds(){
        return this.getY()>=World.HEIGHT;
    }
}
